// 路由常量定义

export const ROUTES = {
  // 根路径
  ROOT: '/',
  
  // 认证相关路由
  AUTH: {
    BASE: '/auth',
    LOGIN: '/auth/login',
    REGISTER: '/auth/register',
    FORGOT_PASSWORD: '/auth/forgot-password',
  },
  
  // 主应用路由 (待实现)
  APP: {
    HOME: '/home',
    RECOMMENDATIONS: '/recommendations',
    VIDEOS: '/videos',
    PROFILE: '/profile',
    MY_CONTENTS: '/my-contents',
    CONTENT: {
      LIST: '/content',
      CREATE: '/content/create',
      EDIT: '/content/edit/:id',
      VIEW: '/content/:id',
    },
    ADMIN: {
      DASHBOARD: '/admin',
      USERS: '/admin/users',
      CONTENT: '/admin/content',
      CONTENT_MANAGEMENT: '/admin/content-management',
      RECOMMENDATION_MANAGEMENT: '/admin/recommendation-management',
      LOGS: '/admin/logs',
      APPLICATIONS: '/admin/applications',
      REVIEW: '/admin/review/:userId',
    },
    LOGS: '/logs',
  },
} as const;

// 路由参数类型
export type RouteParams = {
  id: string;
};

// 动态路由生成函数
export const generateRoute = {
  contentEdit: (id: string | number) => `/content/edit/${id}`,
  contentView: (id: string | number) => `/content/${id}`,
  adminReview: (userId: string | number) => `/admin/review/${userId}`,
};

export default ROUTES; 